//
//  TestInitView.swift
//  EasySwift
//
//  Created by 王隆帅 on 2017/6/10.
//  Copyright © 2017年 王隆帅. All rights reserved.
//

import UIKit

class TestInitView: UIView {

    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    
    // 纯代码走这个
    override init(frame: CGRect) {
        
        super.init(frame: frame);
        
        print("执行了 init(frame: CGRect)")
    }
    
    // 使用 Interface Builder 构造界面走这个
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder);
        print("执行了 init?(coder aDecoder: NSCoder)")
    }
    
    
    
}


